﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ConfigLight.ascx.cs"
    Inherits="LGSVR_WEB.terminal.ConfigLight" %>
<script type="text/javascript">
    function createLightTr(len) {
        var hasLen = $("#tbLight tr").length;
        var str;
        if (hasLen < len) {
            for (var i = 0; i < len - hasLen; i++) {
                str = "<tr><td>" + parseInt($("#tbLight tr").length + 1) + ".&nbsp;&nbsp;";
                str += "&nbsp;&nbsp;开始时间：<input type='text' style='width: 40px' name='txtTimeBegin' />";
                str += "&nbsp;&nbsp;亮度值：<input type='text' style='width: 40px' name='txtTimeBegin' /></td></tr>";
                $("#tbLight").append(str);
            }
        }
        else {
            for (var i = hasLen - 1; i > len - 1; i--) {
                $("#tbLight tr").eq(i).remove();
                //$("#tbArea tr").eq(i).find("input[type='text']").attr("disabled", "disabled");
            }
        }
    }
    
</script>

<table class="edittb" cellpadding="0" cellspacing="0" id="tbLight">
</table>
<div class="btnEdit">
    <asp:Button ID="btnSave" runat="server" Text="添 加" OnClick="btnSave_Click" />
    <asp:Button ID="btnBack" runat="server" Text="返 回"  />
</div>
